﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OF.Component.DTO;
using OF.Component.Factory;
using OF.Component.IDAL;

namespace OF.Component.BLL
{
    public class PostOperate
    {
        private static readonly IPost dal = Post.CreateInstance();

        /// <summary>
        /// 车务圈热门动态搜索
        /// </summary>
        /// <param name="condition"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        public static IList<PostDetailDto> SearchHotList(scPost condition, out int total)
        {
            return dal.SearchHotList(condition, out total);
        }
        /// <summary>
        /// 动态搜索
        /// </summary>
        /// <param name="condition"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        public static IList<PostDetailDto> SearchListByCondition(scPostCondition condition, out int total)
        {
            return dal.SearchListByCondition(condition, out total);
        }
    }
}
